﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Networking
{

    /// <summary>
    /// Risen when the size of the byte buffer doesn't match the required one
    /// </summary>
    public class BufferSizeMismatchException : Exception
    {
        public BufferSizeMismatchException()
            : base("The buffer size provided doesn't match the required one")
        {
            //
        }

        public BufferSizeMismatchException(int iSize)
            : base("The buffer size provided doesnt match the required one: " + iSize + " bytes")
        {
            //
        }
    }
}
